package org.linlinjava.litemall.admin.vo.shop;

import cn.hutool.crypto.digest.mac.MacEngine;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.List;

/**
 * @author wj
 * @date 2021/8/17 14:51
 */
public class InventoryManagementAddVo implements Serializable {

    @NotBlank(message = "名称不能为空")
    @Length(max = 8,message = "名称长度不能超过8")
    private String name;

    @NotBlank(message = "手机号码不能为空")
    @Length(min = 11,max = 11,message = "手机号码长度需要为11位")
    @Pattern(regexp = "^(((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(16[6])|(17[0135678])|(18[0-9])|(19[89]))\\d{8})$", message = "手机号格式错误")
    private String phone;

    @NotNull(message = "推广方案不能为空")
    private Integer programme;

    @NotNull(message = "店铺id不能为空")
    private Integer shopId;


    /**
     * 省id
     */
    private Integer provinceId;

    /**
     * 市id
     */
    private Integer cityId;

    /**
     * 省份code
     */
    private String provinceCode;

    /**
     * 市code
     */
    private String cityCode;

    /**
     * 县区code
     */
    private String villageCode;

    /**
     * 代理
     */
    private Integer proxy;

    /**
     * 图片
     */
    private List<String> images;

    /**
     * 备注
     */
    private String remark;


    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getVillageCode() {
        return villageCode;
    }

    public void setVillageCode(String villageCode) {
        this.villageCode = villageCode;
    }

    public Integer getProxy() {
        return proxy;
    }

    public void setProxy(Integer proxy) {
        this.proxy = proxy;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getProgramme() {
        return programme;
    }

    public void setProgramme(Integer programme) {
        this.programme = programme;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }
}
